home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Files / VolumeID.h < prev    next >
Text File  |  1997-06-28  |  480b  |  29 lines

  1. // VolumeID.h
  2.  
  3. #ifndef VolumeID_h
  4. #define VolumeID_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. class VolumeID
  11.   {
  12.     private:
  13.         int16 refNum;
  14.     
  15.         VolumeID( int16 value )
  16.           : refNum( value )
  17.           {}
  18.         
  19.     public:
  20.         static VolumeID Make( int16 value )        { return value; }
  21.     
  22.         int16 RefNum() const                            { return refNum; }
  23.         
  24.         bool operator==( VolumeID f ) const        { return refNum == f.refNum; }
  25.         bool operator!=( VolumeID f ) const        { return refNum != f.refNum; }
  26.   };
  27.  
  28. #endif
  29.